<?php

define('IN_PHPBB', true);

define('GD', false);

$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$requester = 'testvc';
include($phpbb_root_path . 'common.' . $phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
$user->set($requester);
//
// End session management
//
define('VC_DEBUG', true);

include($config->url('includes/class_visual_confirm'));
include($config->url('includes/class_visual_confirm_img'));

// get the code
$visual_confirm = new visual_confirm();
$code = $visual_confirm->confirm_code();
unset($visual_confirm);

if ( GD )
{
	include($config->url('includes/class_visual_confirm_img_gd'));
	$visual_confirm_img = new visual_confirm_img_gd();
}
else
{
	include($config->url('includes/class_visual_confirm_img_bt'));
	$visual_confirm_img = new visual_confirm_img_bt();
}
$visual_confirm_img->code = $code;
$visual_confirm_img->init();
$visual_confirm_img->display();
unset($visual_confirm_img);
exit;

?>